﻿namespace VideoAnalysisWebApi.Models
{
    public class VideoAnalysisViewModel
    {
        public string Name { get; set; }
        public string Desc { get; set; }
        public int ConfigId { get; set; }
        public int StreamId { get; set; }
        public string StreamName { get; set; }
        public string StreamUrl { get; set; }
        public int AnalysisModelId { get; set; }
        public string AnalysisModelName { get; set; }
        public AnalysisTypes AnalysisModelType { get; set; }
        public VideoAnalysisStatus Status { get; set; }
        public string Message { get; set; }
    }

    public enum VideoAnalysisStatus : int
    {
        /// <summary>
        /// 未生效
        /// </summary>
        UnEnabled,
        /// <summary>
        /// 待接入
        /// </summary>
        Pending,
        /// <summary>
        /// 接入中
        /// </summary>
        Processing,
        /// <summary>
        /// 已接入
        /// </summary>
        Procesed,
        /// <summary>
        /// 接入失败
        /// </summary>
        Failed
    }
}
